package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.Hycy;
import cn.stylefeng.guns.sys.modular.system.model.params.HycyParam;
import cn.stylefeng.guns.sys.modular.system.model.result.HycyResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2020-10-28
 */
public interface HycyService extends IService<Hycy> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2020-10-28
     */
    void add(HycyParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2020-10-28
     */
    void delete(HycyParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2020-10-28
     */
    void update(HycyParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-28
     */
    HycyResult findBySpec(HycyParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-28
     */
    List<HycyResult> findListBySpec(HycyParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-28
     */
     LayuiPageInfo findPageBySpec(HycyParam param);

    int batchImport(String fileName, MultipartFile file, String dataTime)throws Exception ;
}
